import request from '@/utils/request'

// 上传多个文件
export function fileUploads(data) {
    return request({
      headers: { 'Content-Type': 'multipart/form-data'},
      url: '/common/uploads',
      method: 'post',
      data: data
    })
}

// 上传单个文件
export function fileUpload(data) {
    return request({
      headers: { 'Content-Type': 'multipart/form-data'},
      url: '/common/upload',
      method: 'post',
      data: data
    })
}